home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
SCLIB.ARJ
/
SCL1SAMP.EXE
/
DISSOLV.C
< prev
next >
Wrap
Text File
|
1992-01-01
|
1KB
|
40 lines
#include <scl1.h>
#include <scl1clor.h>
/***********************************************************
Shows several dissolve effects for clearing the screen */
main()
{
int Color1,Color2;
if(Video()==COLOR)
{
Color1=WHITE_BLACK;
Color2=BROWN_BLACK+HIGHLIGHT;
}
else
{
Color1=WHITE_BLACK;
Color2=WHITE_BLACK+HIGHLIGHT;
}
FillBlock(Color2,0,0,VC_Lines-1,VC_Cols-1,'X'); /* Fill screen with X */
WaitTime(50); /* 1/2 second delay */
Dissolve(Color1,DS_BOX,1); /* Clear screen */
WaitTime(50);
FillBlock(Color2,0,0,VC_Lines-1,VC_Cols-1,'X');
WaitTime(100);
Dissolve(Color1,DS_SIDES,1);
WaitTime(50);
FillBlock(Color2,0,0,VC_Lines-1,VC_Cols-1,'X');
WaitTime(100);
Dissolve(Color1,DS_SIX_PARTS,1);
WaitTime(50);
FillBlock(Color2,0,0,VC_Lines-1,VC_Cols-1,'X');
WaitTime(100);
Dissolve(Color1,DS_FOUR_BOXES,1);
}